import 'package:changxindianzishangwu/else/lib/common/index.dart';
import 'package:changxindianzishangwu/model/address_book_model.dart';
import 'package:flutter/material.dart';

class ListItemWidget extends StatefulWidget {
  AddressBookModel model;
  ListItemWidget({Key key, this.model}) : super(key: key);

  @override
  _ListItemWidgetState createState() => _ListItemWidgetState();
}

class _ListItemWidgetState extends State<ListItemWidget> {
  @override
  Widget build(BuildContext context) {
    return ListTile(
      title: Text(widget.model.name),
      subtitle: Text(widget.model.tagIndex),
      onTap: () {
        LogUtil.e("onItemClick : $widget.model");
        Utils.showSnackBar(context, 'onItemClick : ${widget.model.name}');
      },
    );
  }
}
